<template>
  <pad>
    <van-cell-group v-if="bloodFriendDetail">
      <van-cell :title="bloodFriendDetail.devoteName" value="已绑定" :label="bloodFriendDetail.stationName" />
      
      <van-cell :title="`第${index+1}次献浆时间`" :value="item.lastDate" v-for="(item,index) in bloodFriendDetail.devoteRecord.records"/>
    </van-cell-group>
  </pad>
</template>

<script>
import Pad from "@/components/pad";
import { bloodFriendDetail } from '@/api/bloodFriend'
export default {
  data() {
    return {
        bloodFriendDetail:''
    };
  },
  created() {
      bloodFriendDetail({ id: this.$route.params.id,current:1,size:1000 }).then(({ data }) => {
          this.bloodFriendDetail = data
      })
  },
  components: {
    Pad
  }
};
</script>

<style lang='scss'>
</style>
